import { defHttp } from '@/utils/http/axios'

enum Path {
  Tree = '/module/tree',
  List = '/module/list',
}

export const moduleApi = {
  tree() {
    return defHttp.post({ url: Path.Tree })
  },
  list() {
    return defHttp.post({ url: Path.List })
  },
}
